package com.qianfeng1.day6_java8.monday.lambda.method;


import com.qianfeng1.day6_java8.monday.lambda.demo.User;

import java.util.function.Supplier;

/**
 * 作者：黎杭
 * 日期：2020/2/17
 */
public class Test4 {
    public static void main(String[] args) {
        Supplier<User> sup = () -> new User("李四", 180, 60.0, 25, "男");
        Supplier<User> sup2 = User::new;// 这种方法只能够用于无参构造
    }
}
